<%@ page pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<html>
    <head>
        <title></title>
        <script language="javascript">
        </script>
    </head>
    <body >
        <div id="container" style="width:690px;height:600px;margin-left:-8px;margin-top:-15px;"><br>
            <table width="90%" cellpadding="2px" cellspacing="0px" border="1px solid"text-align="center" bordercolor="#4F4F4F" style="font-size:13px;font-family:Arial, Helvetica, sans-serif;color:black;" class="sortable">
                <caption style="font-size:14px;"><b><s:property value="factorDTO.factorName" />最近一次数值 </b></caption>
                <tr>
                    <th width="20%">最近值</th>
                    <th width="20%">升降额</th>
                    <th width="20%">升降幅</th>
                    <th width="20%">最高</th>
                    <th width="20%">最低</th>
                </tr>
                <tr>
                    <td><s:property value="factorDTO.latestValue" /></td>
                    <td><s:property value="factorDTO.updownValue" /></td>
                    <td><s:property value="factorDTO.updownMargin" /></td>
                    <td><s:property value="factorDTO.maxValue" /></td>
                    <td><s:property value="factorDTO.minValue" /></td>
                </tr>
            </table><br>
            <div id="f_picture" style="margin-left:-40px;width:100%;height:400px;background:url(<s:property value="file.getPath()" />) no-repeat center;">
                <table width="100%">
                    <caption style="font-size:14px;font-family:Arial, Helvetica, sans-serif;color:black;"><s:property value="factorDTO.factorName" />纵向比较</caption>
                    <tr>
                        <td>
                        </td>
                    </tr>
                </table>
            </div><br>
            <table width="90%" cellpadding="2px" cellspacing="0px" border="1px solid"text-align="center" bordercolor="#4F4F4F" style="font-size:13px;font-family:Arial, Helvetica, sans-serif;color:black;" class="sortable">
                <caption style="font-size:14px;"><b><s:property value="factorDTO.factorName" />历史记录</b></caption>
                <tr>
                    <th>时间</th>
                    <th>数值</th>
                </tr>
                <s:iterator value="factorHistory" var="temp">
                    <tr>
                        <td><s:property value="#temp.date" /></td>
                        <td><s:property value="#temp.value" /></td>
                    </tr>
                </s:iterator>
            </table>
        </div>
    </body>
</html>